package com.evil.application.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 应用机器人日志详细表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@TableName(value = "evil_application_robot_log_detail")
public class ApplicationRobotLogDetail implements Serializable {
    /**
     * id
     */
    @TableId(value = "robot_log_detail_id", type = IdType.AUTO)
    private Long robotLogDetailId;

    /**
     * 机器人日志id
     */
    @TableField(value = "robot_log_id")
    private Long robotLogId;

    /**
     * 执行目标id
     */
    @TableField(value = "action_target_id")
    private Long actionTargetId;

    /**
     * 执行目标编号
     */
    @TableField(value = "action_target_sn")
    private String actionTargetSn;

    /**
     * 执行结果（0-失败，1-成功）
     */
    @TableField(value = "action_result")
    private Integer actionResult;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建人
     */
    @TableField(value = "creator_id")
    private Long creatorId;

    /**
     * 创建人名字
     */
    @TableField(value = "creator_name")
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    private static final long serialVersionUID = 1L;

    public static final String COL_ROBOT_LOG_DETAIL_ID = "robot_log_detail_id";

    public static final String COL_ROBOT_LOG_ID = "robot_log_id";

    public static final String COL_ACTION_TARGET_ID = "action_target_id";

    public static final String COL_ACTION_TARGET_SN = "action_target_sn";

    public static final String COL_ACTION_RESULT = "action_result";

    public static final String COL_REMARK = "remark";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR_NAME = "creator_name";

    public static final String COL_CREATED = "created";
}